import 'package:flutter/material.dart';
import 'package:model_viewer_plus/model_viewer_plus.dart';

class TestDetailFirst extends StatelessWidget {
  const TestDetailFirst({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      width: 100,
      height: 100,
      child: ModelViewer(
        // backgroundColor: const Color.fromARGB(0xFF, 0xEE, 0xEE, 0xEE),
        src: 'assets/free_car_001.glb', // a bundled asset file
        alt: "A 3D model of an car",
        ar: false,
        // arModes: const ['scene-viewer', 'webxr', 'quick-look'],
        autoRotate: true,
        cameraControls: false,
        // iosSrc: 'https://modelviewer.dev/shared-assets/models/Astronaut.usdz',
        autoRotateDelay: 0,
        interactionPrompt: InteractionPrompt.none,
      ),
    );
  }
}
